package com.jiangnan.warehouse_management.service;

import com.jiangnan.warehouse_management.dto.request.CreateWarehouse;
import com.jiangnan.warehouse_management.dto.request.WarehouseQueryRequest;
import com.jiangnan.warehouse_management.dto.request.WarehouseRequest;
import com.jiangnan.warehouse_management.dto.response.WarehouseQueryResponse;
import com.jiangnan.warehouse_management.pojo.Warehouse;

public interface WarehouseService {

    WarehouseQueryResponse.Warehouses warehousesById(int id);


    WarehouseQueryResponse getWarehousesInfo(WarehouseQueryRequest request);

    Warehouse createWarehouse(CreateWarehouse request);

    Warehouse updateWarehouse(int id, WarehouseRequest request);

    void deleteWarehouse(int id);
}
